<?php
//dezend by http://www.yunlu99.com/ QQ:270656184
defined('BASEPATH') || exit('No direct script access allowed');
?>  <div class="user-body">
  	<div class="body-content">
        <div class="coins">
      		<a 
<?php
if ($stat == 0) {
?>class="on"<?php
}

?> href="<?php echo site_url('item_manage/index');?>?stat=0" class="coin-tab">全部</a>
	      	<a 
<?php
if ($stat == 1) {
?>class="on"<?php
}

?> href="<?php echo site_url('item_manage/index');?>?stat=1" class="coin-tab">未提交</a>
	      	<a 
<?php
if ($stat == 2) {
?>class="on"<?php
}

?> href="<?php echo site_url('item_manage/index');?>?stat=2" class="coin-tab">待审核</a>
	      	<a 
<?php
if ($stat == 3) {
?>class="on"<?php
}

?> href="<?php echo site_url('item_manage/index');?>?stat=3" class="coin-tab">进行中</a>
	      	<a 
<?php
if ($stat == 4) {
?>class="on"<?php
}

?> href="<?php echo site_url('item_manage/index');?>?stat=4" class="coin-tab">已成功</a>
	      	<a 
<?php
if ($stat == 5) {
?>class="on"<?php
}

?> href="<?php echo site_url('item_manage/index');?>?stat=5" class="coin-tab">预热中</a>
	      	<a 
<?php
if ($stat == 6) {
?>class="on"<?php
}

?> href="<?php echo site_url('item_manage/index');?>?stat=6" class="coin-tab">已失败</a>
	      	<a 
<?php
if ($stat == 7) {
?>class="on"<?php
}

?> href="<?php echo site_url('item_manage/index');?>?stat=7" class="coin-tab">未通过</a>
	      	<div class="clear"></div>
	    </div>

      <div class="list">
        <table cellspacing=0 cellpadding=0 border=0>
			<thead>
				<tr>
					<th width=150>项目名称</th>
					<th>目标金额</th>
					<th>周期</th>
					<th>创建时间</th>
					<th>状态</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
			
<?php
foreach ($list as $v) {
?>				<tr>
					<td><?php echo $v['name'];?></td>
					<td><?php echo $v['target_amount'];?></td>
					<td><?php echo $v['day'];?></td>
					<td><?php echo date('Y-m-d H:i:s', $v['add_time']);?></td>
					<td><?php echo $v['stat'];?></td>
					<td>
<?php
	if ($v['status'] == 0) {
?><a href="<?php echo site_url('item_add/index/' . $v['id']);?>" class="cancel-btn">编辑</a><?php
	}
	else {
?>-----<?php
	}

?></td>
				</tr>
			<?php
}

?>			</tbody>
		</table>
		<div class="page">
		  <?php echo $page;?>		</div>
		
<?php
if (!$list) {
?>		<div class="not-list">
			<i class="fa fa-ban"></i>
			<span><?php echo lang('user_not_list');?></span>
		</div>
		<?php
}

?>      </div>
      
    </div>
  </div>
  <div class="clear"></div>
</div>